﻿<%@ Page Language="C#" MasterPageFile="~/InventoryTracker/MasterPage.master" AutoEventWireup="true" CodeFile="Goods_Receipt.aspx.cs" Inherits="InventoryTracker_GoodsReceipt" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="maincontent" Runat="Server">


<div id="projectreport">
        <a name="content_start0" id="content_start0"></a>
        <fieldset>
            <h2 class="none">
                Goods Receipt</h2>
            <legend>Goods Receipt</legend>
            <div class="formsection">
                Goods Receipt</div>
            
            <table style="height: 0px; width: 356px; margin-top: 0px;">
            <tr>
            <td>
            
            <asp:DropDownList ID="DdlGoodsRec" runat="server" AutoPostBack="True" 
                    DataSourceID="SqlDSGoodsRec" DataTextField="GRId" DataValueField="GRId" 
                    onselectedindexchanged="DDlGoodsRec_SelectedIndexChanged" Height="22px" 
                    Width="128px"></asp:DropDownList>
            
                <asp:SqlDataSource ID="SqlDSGoodsRec" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                    SelectCommand="SELECT [GRId] FROM [GoodsReceipt]"></asp:SqlDataSource>
            
            </td>
                <td style="width: 170px">
                <p style="width: 170px">
                        <asp:Label ID="lblSupID" runat="server" Text="SupplierID"></asp:Label>
                        <br />
                         <asp:DropDownList ID="ddrSupID" runat="server" DataSourceID="SupIDDaSo" 
                            DataTextField="SupName" DataValueField="SupID" Height="22px" Width="128px"></asp:DropDownList>
                        <asp:SqlDataSource ID="SupIDDaSo" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                            SelectCommand="SELECT [SupID], [SupName] FROM [SupplierMaster]"></asp:SqlDataSource>
                            <asp:TextBox ID="txtSupplID" runat="server" Visible="false" ></asp:TextBox>
                    </p>
                
                    <p style="width: 170px">
                        <asp:Label ID="lblItemCode" runat="server" Text="Item Code"></asp:Label>
                        <br />
                        <asp:DropDownList ID="ddrItemCode" runat="server" 
                            DataSourceID="ItCodeDaSo" DataTextField="ItemName" 
                            DataValueField="ItemCode" Height="22px" Width="128px"></asp:DropDownList>
                        <asp:SqlDataSource ID="ItCodeDaSo" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                            SelectCommand="SELECT [ItemCode], [ItemName] FROM [MaterialMaster]"></asp:SqlDataSource>
                            <asp:TextBox ID="txtItemCodeI" runat="server" Visible="false" ></asp:TextBox>
                    </p>
                    
                    <p style="height: 44px">
                        <asp:Label ID="lblQtyAccepted" runat="server" Text="Quantity Accepted"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtQtyAccepted"
                        ErrorMessage="*" ></asp:RequiredFieldValidator>
                        <asp:TextBox ID="txtQtyAccepted" runat="server"></asp:TextBox>
                        
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" 
                            ControlToValidate="txtQtyAccepted" ErrorMessage="Enter only Numbers ." 
                            ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                    </p>
                    
                    <p style="height: 44px">
                        <asp:Label ID="lblQtyRejected" runat="server" Text="Quantity Rejected"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtQtyRejected"
                        ErrorMessage="*" ></asp:RequiredFieldValidator>
                        <asp:TextBox ID="txtQtyRejected" runat="server"></asp:TextBox>
                        
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ControlToValidate="txtQtyRejected" ErrorMessage="Enter only Numbers ." 
                            ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                    </p>
                    
                    </td>
                    <td>
                    
                    
                     <p style="width: 170px; height: 44px">
                        <asp:Label ID="lblQtyPending" runat="server" Text="Quantity Pending"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtQtyPending"
                        ErrorMessage="*" ></asp:RequiredFieldValidator>
                        <asp:TextBox ID="txtQtyPending" runat="server"></asp:TextBox>
                        
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                            ControlToValidate="txtQtyPending" ErrorMessage="Enter only Numbers ." 
                            ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                    </p>
                    
                    <p style="width: 170px; height: 44px">
                        <asp:Label ID="lblBuyingRate" runat="server" Text="Buying Rate"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtBuyingRate"
                        ErrorMessage="*" ></asp:RequiredFieldValidator>
                        <asp:TextBox ID="txtBuyingRate" runat="server"></asp:TextBox>
                        
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" 
                            ControlToValidate="txtBuyingRate" ErrorMessage="Enter only Numbers ." 
                            ValidationExpression="^\d*\.?\d*$"></asp:RegularExpressionValidator>
                    </p>
                    
                    <p style="width: 170px; height: 44px">
                        <asp:Label ID="lblVendorItemCode" runat="server" Text="Vendor Item Code"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtVendorItemCode"
                        ErrorMessage="*" ></asp:RequiredFieldValidator>
                        <asp:TextBox ID="txtVendorItemCode" runat="server"></asp:TextBox>
                        
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                            ControlToValidate="txtVendorItemCode" ErrorMessage="Enter only Numbers ." 
                            ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                    </p>
                    
            
                    <p style="width: 170px; height: 44px">
                        <asp:Label ID="lblPONumber" runat="server" Text="Purchase Order Number"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtPONumber"
                        ErrorMessage="*" ></asp:RequiredFieldValidator>
                            <asp:TextBox ID="txtPONumber" runat="server"></asp:TextBox>
                            
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                            ControlToValidate="txtPONumber" ErrorMessage="Enter only Numbers ." 
                            ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                    </p>
                    
            </td>
            </tr>
            </table>
            
            <asp:Label ID="lblWarn" runat="server" Text="* Required Fields" 
                ForeColor="Red"></asp:Label>
           
            <div class="formsection">
                <asp:Button ID="btnGRSubmit" runat="server"  Text="Submit" 
                    onclick="btnGRSubmit_Click"/>
                    
                    <asp:Button ID="btnGRNew" runat="server"  Text="New" 
                    onclick="btnGRNew_Click" />
                    <asp:Button ID="btnGRDelete" runat="server" Text="Delete" 
                    onclick="btnGRDelete_Click" ></asp:Button>
                    <asp:Button ID="btnGREdit" runat="server" Text="Edit" 
                    onclick="btnGREdit_Click" ></asp:Button>
                    <asp:Button ID="btnGRUpdate" runat="server" Text="Update" 
                    onclick="btnGRUpdate_Click" ></asp:Button>
                    
                <asp:Label ID="lblResult" runat="server" Text=""></asp:Label>
            </div>
        </fieldset>
    </div>









</asp:Content>

